/***************************************************************************************************
 *
 * Project: HZFlashcards
 *
 * Class: HZFlashCards
 *
 * File name: HZFlashCards.java
 *
 * Aug 16, 2007
 *
 **************************************************************************************************/


/*
 * Copyright (c) 1995-1998 Sun Microsystems, Inc. All Rights Reserved.
 *
 * Permission to use, copy, modify, and distribute this software and its documentation for
 * NON-COMMERCIAL purposes and without fee is hereby granted provided that this copyright notice
 * appears in all copies. Please refer to the file "copyright.html" for further important copyright
 * and licensing information.
 *
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
 * LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

// 9121805213907022223999

package com.eastmountain.chinese.main;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.Vector;

import javax.swing.JOptionPane;

import com.eastmountain.chinese.gui.MainPanel;

public class HZFlashCards {
	
	private String dbInd;

    private static String jaString = "\u65e5\u672c\u8a9e\u6587\u5b57\u5217";

    public HZFlashCards( String dbIndicator ) {
    	
    	this.dbInd = dbIndicator;

        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.

        javax.swing.SwingUtilities.invokeLater(new Runnable() {

            public void run() {

                new MainPanel( dbInd );

            }

        } );

    }
    
    public static void main( String[] argv ) {
    	
    	String dbIndicator;

        if ( argv.length == 0 ) {

            System.err.println( "Usage: java HZFlashCards DataBaseIndicator" );
            System.exit( 12 );

        } else {

            System.out.println( "Arg 1: " + argv[ 0 ] );

            HZFlashCards hzFlashCards
                = new HZFlashCards( argv[ 0 ] );

        }

    }

}
